const mutations = {
    setUser(state, user) {
        console.log('修改用户信息', user)
        state.user = user
    },
    setSubCommunities(state, subCommunities) {
        console.log('setSubCommunities', subCommunities)
        state.subCommunities = subCommunities
    },
    setPostContent(state, postContent) {
        state.postContent = postContent
    },
    setNavbarVisibility(state, navbarVis) {
        state.navbarVis = navbarVis
    },
    setNavOffSetY(state, navOffSetY) {
        state.navOffSetY = navOffSetY
    },//修改导航栏偏移量
    setReplyReport(state,report){
        state.replyReport=report
    },
    setUserInfo(state,user){
        state.userInfo=user
    },
    setCommunityInfo(state,community)
    {
        state.communityInfo=community
    },
    setCommunityReport(state,communityReport){
        state.communityReport=communityReport

    },
    setPageScrolled(state,pageScrolled){
        state.pageScrolled = pageScrolled
    }//监控页面滚动量
}

export default mutations
